package kv_redis

import (
	"clean/usecase"

	"github.com/gomodule/redigo/redis"
)

func InitRepo(c redis.Conn) (*usecase.Repo, error) {
	err := createInitTables(db)
	if err != nil {
		return nil, err
	}
	return &usecase.Repo{
		HelloRepo: NewHelloRepo(db),
	}, nil
}
